{$CLEO .cs}

script_name 'RANDMLD'

:CJHOUSE_START
wait 0
if
Player.Defined($PLAYER_CHAR)
jf @CJHOUSE_START
get_current_day_of_week 14@
if and
does_char_exist $PLAYER_ACTOR
has_save_game_finished
then
if
locate_char_any_means_3d $PLAYER_ACTOR sphere 0 in_sphere 2495.8 -1707.4 1014.7 radius 2.0 2.0 2.0
jf @SF_DOHERTY
store_clothes_state
request_animation "INT_HOUSE"
if
has_animation_loaded "INT_HOUSE"
then
if and
not 14@ == 7
not 14@ == 1
jf @CJHOUSE_HOMIESOVER
0209: 10@ = random_int_in_ranges 0 3
if
10@ == 0
jf @CJHOUSE_COUCH
display_hud 0
display_radar 0
Camera.SetPosition(2491.2, -1700.4, 1019.3, 0.0, 0.0, 0.0)
Camera.OnPed($PLAYER_ACTOR, 15, 2)
Player.SetClothes($PLAYER_CHAR, "Legsheart", "Legs", BodyPart.Legs)
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 0
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 3
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 16
Player.Build($PLAYER_CHAR)
Actor.PutAt($PLAYER_ACTOR, 2495.203, -1703.556, 1018.344)
Actor.Angle($PLAYER_ACTOR) = 179.2347
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "BED_OUT_R" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 3330
wait 3500
Camera.Restore_WithJumpCut
Camera.SetPosition(2500.0, -1707.0, 1019.3, 0.0, 0.0, 0.0)
Camera.PointAt(2492.4, -1706.8, 1018.3, 2)
restore_clothes_state
Player.Build($PLAYER_CHAR)
task_go_to_coord_any_means $PLAYER_ACTOR 2492.4 -1706.8 1018.3 walk_style 4 time 1000
wait 5000
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
wait 100
remove_animation "INT_HOUSE"
terminate_this_custom_script
end
end

:CJHOUSE_COUCH
if
10@ == 1
jf @CJHOUSE_KITCHEN
display_hud 0
display_radar 0
Camera.SetPosition(2495.7, -1693.0, 1014.8, 0.0, 0.0, 0.0)
Camera.PointAt(2492.9, -1698.7, 1014.4, 2)
Actor.PutAt($PLAYER_ACTOR, 2492.9, -1698.7, 1014.4)
Actor.Angle($PLAYER_ACTOR) = 15.2347
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "LOU_Loop" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 1 time -1
wait 3330
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "LOU_OUT" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 1330
wait 1000
display_hud 1
display_radar 1
Camera.Restore_WithJumpCut
wait 100
remove_animation "INT_HOUSE"
terminate_this_custom_script

:CJHOUSE_KITCHEN
request_animation "VENDING"
display_hud 0
display_radar 0
Camera.SetPosition(2499.9, -1711.2, 1014.7, 0.0, 0.0, 0.0)
Camera.PointAt(2499.9, -1706.8, 1014.7, 2)
Actor.PutAt($PLAYER_ACTOR, 2499.9, -1706.8, 1014.7)
Actor.Angle($PLAYER_ACTOR) = 260.0
wait 100
if
has_animation_loaded "VENDING"
jf @UNKNOWN
1@ = Object.Create(1517, 0.0, 0.0, 0.0)
070A: AS_actor $PLAYER_ACTOR attach_to_object 1@ offset 0.06 0.05 -0.03 on_bone 5 1 perform_animation "vend_drink2_p" IFP_file "VENDING" time 3330
wait 3330
display_hud 1
display_radar 1
Camera.Restore_WithJumpCut
wait 100
Object.Destroy(1@)
0792: disembark_instantly_actor $PLAYER_ACTOR
remove_animation "INT_HOUSE"
remove_animation "VENDING"
terminate_this_custom_script

:CJHOUSE_GFOVER
if
$Girl_Progress[0] >= 80
jf @CJHOUSE_HOEOVER
display_hud 0
display_radar 0
Camera.SetPosition(2495.3, -1705.4, 1018.3, 0.0, 0.0, 0.0)
Camera.OnPed($PLAYER_ACTOR, 15, 2)
Player.SetClothes($PLAYER_CHAR, "Legsheart", "Legs", BodyPart.Legs)
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 0
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 3
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 16
Player.Build($PLAYER_CHAR)
Actor.PutAt($PLAYER_ACTOR, 2495.203, -1703.556, 1018.344)
Actor.Angle($PLAYER_ACTOR) = 179.2347
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "BED_OUT_R" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 3330
load_special_character 'GANGRL2' as 1
wait 1
if
has_special_character_loaded 1
jf @Unknown
Actor.Create(1@, PedType.CivFemale, #SPECIAL01, 2495.1, -1702.0, 1017.3)
if
does_char_exist 1@
then
set_char_collision 1@ collision 0
task_play_anim_non_interruptable 1@ perform_animation "BED_LOOP_L" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time -1
Actor.Angle(1@) = 0.0
wait 3500
Camera.Restore_WithJumpCut
Camera.SetPosition(2500.0, -1707.0, 1019.3, 0.0, 0.0, 0.0)
Camera.PointAt(2492.4, -1706.8, 1018.3, 2)
restore_clothes_state
Player.Build($PLAYER_CHAR)
wait 1500
Actor.DestroyInstantly(1@)
unload_special_character 1
Model.Load(#GANGRL3)
load_all_models_now
if
Model.Available(#GANGRL3)
jf @Unknown
Actor.Create(1@, PedType.CivFemale, #GANGRL3, 2495.1, -1701.0, 1018.3)
wait 2000
task_say 1@ from_table 299
task_go_to_coord_any_means $PLAYER_ACTOR 2492.4 -1706.8 1018.3 walk_style 4 time -1
wait 5000
Actor.RemoveReferences(1@)
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
Model.Destroy(#GANGRL3)
wait 100
remove_animation "INT_HOUSE"
terminate_this_custom_script
end

:CJHOUSE_HOEOVER
0209: 15@ = random_int_in_ranges 0 2
if
15@ == 0
then
15@ = 63
else
15@ = 152
end 
display_hud 0
display_radar 0
Camera.SetPosition(2495.3, -1705.4, 1018.3, 0.0, 0.0, 0.0)
Camera.OnPed($PLAYER_ACTOR, 15, 2)
Player.SetClothes($PLAYER_CHAR, "Legsheart", "Legs", BodyPart.Legs)
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 0
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 3
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 16
Player.Build($PLAYER_CHAR)
Actor.PutAt($PLAYER_ACTOR, 2495.203, -1703.556, 1018.344)
Actor.Angle($PLAYER_ACTOR) = 179.2347
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "BED_OUT_R" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 3330
Model.Load(15@)
load_all_models_now
if
Model.Available(15@)
jf @Unknown
Actor.Create(1@, PedType.CivFemale, 15@, 2495.1, -1702.0, 1017.3)
if
does_char_exist 1@
then
set_char_collision 1@ collision 0
task_play_anim_non_interruptable 1@ perform_animation "BED_LOOP_L" IFP "INT_HOUSE" framedelta 4.0 loopA 1 lockX 0 lockY 0 lockF 0 time -1
Actor.Angle(1@) = 0.0
wait 3500
Camera.Restore_WithJumpCut
Camera.SetPosition(2500.0, -1707.0, 1019.3, 0.0, 0.0, 0.0)
Camera.PointAt(2492.4, -1706.8, 1018.3, 2)
restore_clothes_state
Player.Build($PLAYER_CHAR)
task_say 1@ from_table 197
wait 2000
task_go_to_coord_any_means $PLAYER_ACTOR 2492.4 -1706.8 1018.3 walk_style 4 time -1
wait 5000
set_char_keep_task 1@ keep 1
Actor.RemoveReferences(1@)
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
Model.Destroy(15@)
wait 100
remove_animation "INT_HOUSE"
terminate_this_custom_script
end

:CJHOUSE_HOMIESOVER
if
not 14@ == 1
jf @CJHOUSE_GFOVER
if
$Riot_Total_Passed_Missions == 5
jf @CJHOUSE_HOMIESOVER2
load_special_character 'CESAR' as 1
load_special_character 'WUZIMU' as 2
load_special_character 'SWEET' as 3
display_hud 0
display_radar 0
Camera.SetPosition(2495.7, -1693.0, 1014.8, 0.0, 0.0, 0.0)
Camera.PointAt(2492.9, -1698.7, 1014.4, 2)
Actor.PutAt($PLAYER_ACTOR, 2492.9, -1698.7, 1014.4)
Actor.Angle($PLAYER_ACTOR) = 15.2347
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "LOU_Loop" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 1 time -1
wait 0
if and
has_special_character_loaded 1
has_special_character_loaded 2
has_special_character_loaded 3 
jf @Unknown
Actor.Create(1@, PedType.CivMale, #SPECIAL01, 2494.0, -1698.7, 1014.7)
Actor.Create(2@, PedType.CivMale, #SPECIAL02, 2494.25, -1697.68, 1014.7)
Actor.Create(3@, PedType.CivMale, #SPECIAL03, 2494.23, -1696.4, 1014.7)
if and
does_char_exist 1@
does_char_exist 2@
does_char_exist 3@
then
Actor.Angle(1@) = 15.2347
Actor.Angle(2@) = 82.2347
Actor.Angle(3@) = 93.2347
task_play_anim_secondary 1@ perform_animation "SEAT_Idle" IFP "PED" framedelta 4.0 loopA 1 lockX 0 lockY 0 lockF 1 time -1
task_play_anim_secondary 2@ perform_animation "SEAT_Idle" IFP "PED" framedelta 4.0 loopA 1 lockX 0 lockY 0 lockF 1 time -1
task_play_anim_secondary 3@ perform_animation "SEAT_Idle" IFP "PED" framedelta 4.0 loopA 1 lockX 0 lockY 0 lockF 1 time -1
wait 3330
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "LOU_OUT" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 1330
task_look_at_char 3@ look_at_char $PLAYER_ACTOR time 1000
wait 1000
display_hud 1
display_radar 1
Camera.Restore_WithJumpCut
set_char_keep_task 1@ keep_task 1
set_char_keep_task 2@ keep_task 1
set_char_keep_task 3@ keep_task 1
wait 100
Actor.RemoveReferences(1@)
Actor.RemoveReferences(2@)
Actor.RemoveReferences(3@)
Model.Destroy(#SPECIAL01)
Model.Destroy(#SPECIAL02)
Model.Destroy(#SPECIAL03)
remove_animation "INT_HOUSE"
terminate_this_custom_script
end

:CJHOUSE_HOMIESOVER2
if
$LS_FINAL_Total_Passed_Missions == 0
jf @CJHOUSE_HOMIESOVER3
load_special_character 'SWEET' as 1
load_special_character 'SMOKE' as 2
load_special_character 'RYDER' as 3
display_hud 0
display_radar 0
Camera.SetPosition(2495.7, -1693.0, 1014.8, 0.0, 0.0, 0.0)
Camera.PointAt(2492.9, -1698.7, 1014.4, 2)
Actor.PutAt($PLAYER_ACTOR, 2492.9, -1698.7, 1014.4)
Actor.Angle($PLAYER_ACTOR) = 15.2347
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "LOU_Loop" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 1 time -1
wait 0
if and
has_special_character_loaded 1
has_special_character_loaded 2
has_special_character_loaded 3 
jf @Unknown
Actor.Create(1@, PedType.CivMale, #SPECIAL01, 2494.0, -1698.7, 1014.7)
Actor.Create(2@, PedType.CivMale, #SPECIAL02, 2494.25, -1697.68, 1014.7)
Actor.Create(3@, PedType.CivMale, #SPECIAL03, 2494.23, -1696.4, 1014.7)
if and
does_char_exist 1@
does_char_exist 2@
does_char_exist 3@
then
Actor.Angle(1@) = 15.2347
Actor.Angle(2@) = 82.2347
Actor.Angle(3@) = 93.2347
task_play_anim_secondary 1@ perform_animation "SEAT_Idle" IFP "PED" framedelta 4.0 loopA 1 lockX 0 lockY 0 lockF 1 time -1
task_play_anim_secondary 2@ perform_animation "SEAT_Idle" IFP "PED" framedelta 4.0 loopA 1 lockX 0 lockY 0 lockF 1 time -1
task_play_anim_secondary 3@ perform_animation "SEAT_Idle" IFP "PED" framedelta 4.0 loopA 1 lockX 0 lockY 0 lockF 1 time -1
wait 3330
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "LOU_OUT" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 1330
task_look_at_char 3@ look_at_char $PLAYER_ACTOR time 1000
wait 1000
display_hud 1
display_radar 1
Camera.Restore_WithJumpCut
set_char_keep_task 1@ keep_task 1
set_char_keep_task 2@ keep_task 1
set_char_keep_task 3@ keep_task 1
wait 100
Actor.RemoveReferences(1@)
Actor.RemoveReferences(2@)
Actor.RemoveReferences(3@)
Model.Destroy(#SPECIAL01)
Model.Destroy(#SPECIAL02)
Model.Destroy(#SPECIAL03)
remove_animation "INT_HOUSE"
terminate_this_custom_script
end

:CJHOUSE_HOMIESOVER3
Model.Load(#FAM1)
Model.Load(#FAM2)
Model.Load(#FAM3)
display_hud 0
display_radar 0
Camera.SetPosition(2495.7, -1693.0, 1014.8, 0.0, 0.0, 0.0)
Camera.PointAt(2492.9, -1698.7, 1014.4, 2)
Actor.PutAt($PLAYER_ACTOR, 2492.9, -1698.7, 1014.4)
Actor.Angle($PLAYER_ACTOR) = 15.2347
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "LOU_Loop" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 1 time -1
wait 0
if and
Model.Available(#FAM1)
Model.Available(#FAM2)
Model.Available(#FAM3) 
jf @Unknown
Actor.Create(1@, PedType.GANG2, #FAM1, 2494.0, -1698.7, 1014.7)
Actor.Create(2@, PedType.GANG2, #FAM2, 2494.25, -1697.68, 1014.7)
Actor.Create(3@, PedType.GANG2, #FAM3, 2494.23, -1696.4, 1014.7)
if and
does_char_exist 1@
does_char_exist 2@
does_char_exist 3@
then
Actor.Angle(1@) = 15.2347
Actor.Angle(2@) = 82.2347
Actor.Angle(3@) = 93.2347
task_play_anim_secondary 1@ perform_animation "SEAT_Idle" IFP "PED" framedelta 4.0 loopA 1 lockX 0 lockY 0 lockF 1 time -1
task_play_anim_secondary 2@ perform_animation "SEAT_Idle" IFP "PED" framedelta 4.0 loopA 1 lockX 0 lockY 0 lockF 1 time -1
task_play_anim_secondary 3@ perform_animation "SEAT_Idle" IFP "PED" framedelta 4.0 loopA 1 lockX 0 lockY 0 lockF 1 time -1
wait 3330
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "LOU_OUT" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 1330
task_look_at_char 3@ look_at_char $PLAYER_ACTOR time 1000
wait 1000
display_hud 1
display_radar 1
Camera.Restore_WithJumpCut
set_char_keep_task 1@ keep_task 1
set_char_keep_task 2@ keep_task 1
set_char_keep_task 3@ keep_task 1
wait 100
Actor.RemoveReferences(1@)
Actor.RemoveReferences(2@)
Actor.RemoveReferences(3@)
Model.Destroy(#FAM1)
Model.Destroy(#FAM2)
Model.Destroy(#FAM3)
remove_animation "INT_HOUSE"
terminate_this_custom_script
end

:SF_DOHERTY
if
locate_char_any_means_3d $PLAYER_ACTOR sphere 0 in_sphere -2021.0 156.0 28.6 radius 2.0 2.0 2.0
jf @LV_AIRSTRIP
0209: 10@ = random_int_in_ranges 0 3
if
10@ == 0
jf @SF_DOHERTY2
display_hud 0
display_radar 0
Camera.SetPosition(-2043.9, 182.1, 36.6, 0.0, 0.0, 0.0)
Camera.PointAt(-2025.9, 161.3, 28.8, 2)
Actor.PutAt($PLAYER_ACTOR, -2032.9, 161.3, 29.0)
wait 1500
task_go_to_coord_any_means $PLAYER_ACTOR -2025.9 161.3 28.8 walk_style 4 time 5000
wait 5000
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
wait 100
terminate_this_custom_script

:SF_DOHERTY2
if
10@ == 1
jf @SF_DOHERTY3
display_hud 0
display_radar 0
Camera.SetPosition(-1917.3, 201.9, 33.8, 0.0, 0.0, 0.0)
Camera.PointAt(-1940.4, 213.4, 32.3, 2)
Actor.PutAt($PLAYER_ACTOR, -1939.4, 218.0, 32.4)
Actor.Angle($PLAYER_ACTOR) = 180.0
request_animation "GANGS"
wait 0
if
has_animation_loaded "GANGS"
then
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "LEANIDLE" IFP "GANGS" framedelta 4.0 loopA 1 lockX 1 lockY 1 lockF 1 time -1
wait 3000
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "LEANOUT" IFP "GANGS" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 1000
wait 1000
task_go_to_coord_any_means $PLAYER_ACTOR -1939.9 213.9 32.3 walk_style 4 time 1100
wait 1100
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
wait 100
remove_animation "GANGS"
terminate_this_custom_script
end

:SF_DOHERTY3
if and
$Garage_Total_Passed_Missions > 0
not $Steal_Total_Passed_Missions == 4
jf @SF_DOHERTY4
display_hud 0
display_radar 0
Camera.SetPosition(-2010.6, 169.2, 38.6, 0.0, 0.0, 0.0)
Camera.PointAt(-2024.2, 154.4, 33.9, 2)
Actor.PutAt($PLAYER_ACTOR, -2024.2, 154.4, 33.9)
request_animation "BEACH"
load_special_character 'CESAR' as 1
Model.Load(#SAVANNA)
load_all_models_now
wait 0
if and
has_animation_loaded "BEACH"
has_special_character_loaded 1
then
Actor.Create(1@, PedType.CivMale, #SPECIAL01, -2024.2, 158.2, 33.9)
custom_plate_for_next_car #SAVANNA "LVA4L"
Car.Create(13@, #SAVANNA, -2033.7, 170.2, 28.8)
Actor.Angle(1@) = 260.0
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "LAY_BAC_LOOP" IFP "BEACH" framedelta 4.0 loopA 1 lockX 1 lockY 1 lockF 1 time -1
if
does_char_exist 1@
then
Car.Angle(13@) = -90.0
change_car_colour 13@ colour1 3 colour2 3
task_play_anim_non_interruptable 1@ perform_animation "LAY_BAC_LOOP" IFP "BEACH" framedelta 4.0 loopA 1 lockX 1 lockY 1 lockF 1 time -1
wait 5000
task_play_anim_non_interruptable 1@ perform_animation "getup" IFP "ped" framedelta 2.0 loopA 0 lockX 0 lockY 0 lockF 0 time 1100
wait 1000
task_go_to_coord_any_means 1@ -2037.6 153.7 33.9 walk_style 4 time 1100
wait 3000
clear_char_tasks_immediately 1@
Actor.DestroyInstantly(1@)
unload_special_character 1
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "getup" IFP "ped" framedelta 2.0 loopA 0 lockX 0 lockY 0 lockF 0 time 1100
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
Car.RemoveReferences(13@)
wait 100
remove_animation "BEACH"
Model.Destroy(#SAVANNA)
terminate_this_custom_script
end
end

:SF_DOHERTY4
display_hud 0
display_radar 0
Camera.SetPosition(-1995.1, 155.2, 27.5, 0.0, 0.0, 0.0)
Camera.PointAt(-2026.5, 153.4, 29.0, 2)
Actor.PutAt($PLAYER_ACTOR, -2026.5, 153.4, 29.0)
Actor.Angle($PLAYER_ACTOR) = 180.0
request_animation "GANGS"
wait 0
if
has_animation_loaded "GANGS"
then
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "LEANIDLE" IFP "GANGS" framedelta 4.0 loopA 1 lockX 0 lockY 0 lockF 0 time -1
wait 3000
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "LEANOUT" IFP "GANGS" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 1000
wait 1100
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
wait 100
remove_animation "GANGS"
terminate_this_custom_script
end

:LV_AIRSTRIP
if
locate_char_any_means_3d $PLAYER_ACTOR sphere 0 in_sphere 418.0 2536.7 10.0 radius 2.0 2.0 2.0
jf @LV_STRIP
display_hud 0
display_radar 0
store_clothes_state
request_animation "INT_HOUSE"
if
has_animation_loaded "INT_HOUSE"
then
Camera.SetPosition(420.8, 2535.2, 11.0, 0.0, 0.0, 0.0)
Camera.OnPed($PLAYER_ACTOR, 15, 2)
Player.SetClothes($PLAYER_CHAR, "Legsheart", "Legs", BodyPart.Legs)
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 0
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 3
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 16
Player.Build($PLAYER_CHAR)
Actor.PutAt($PLAYER_ACTOR, 416.8, 2541.28, 10.0)
Actor.Angle($PLAYER_ACTOR) = 270.0
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "BED_OUT_R" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 3330
wait 3500
Camera.Restore_WithJumpCut
Camera.SetPosition(413.1, 2536.9, 11.0, 0.0, 0.0, 0.0)
Camera.OnPed($PLAYER_ACTOR, 15, 2)
task_go_to_coord_any_means $PLAYER_ACTOR 420.1 2541.9 10.0 walk_style 4 time 1100
restore_clothes_state
Player.Build($PLAYER_CHAR)
wait 1100
task_go_to_coord_any_means $PLAYER_ACTOR 420.8 2537.2 10.0 walk_style 4 time 1000
wait 2000
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
wait 100
remove_animation "INT_HOUSE"
terminate_this_custom_script
end

:LV_STRIP
if
locate_char_any_means_3d $PLAYER_ACTOR sphere 0 in_sphere 2027.0 996.0 10.8 radius 2.0 2.0 2.0
jf @BADLANDS
display_hud 0
display_radar 0
Camera.SetPosition(2085.4, 948.7, 31.0, 0.0, 0.0, 0.0)
Camera.PointAt(2027.0, 996.0, 10.8, 2)
wait 5000
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
wait 100
terminate_this_custom_script

:BADLANDS
if
locate_char_any_means_3d $PLAYER_ACTOR sphere 0 in_sphere -2039.7 -2529.1 30.6 radius 2.0 2.0 2.0
jf @CAT_HOUSE
if or
$Truth_Total_Passed_Missions >= 2
$Mission_Badlands_Passed == 0
jf @BADLANDS2
display_hud 0
display_radar 0
Camera.SetPosition(-2070.8, -2462.1, 30.6, 0.0, 0.0, 0.0)
Actor.PutAt($PLAYER_ACTOR, -2045.2, -2524.5, 31.0)
Camera.PointAt(-2050.9, -2530.4, 30.4, 2)
Actor.Angle($PLAYER_ACTOR) = 140.0
Player.CanMove($PLAYER_CHAR, false)
wait 3000
Camera.Restore_WithJumpCut
Camera.SetPosition(-2050.9, -2530.4, 30.4, 0.0, 0.0, 0.0)
Camera.PointAt(-2045.2, -2524.5, 31.0, 2)
wait 3000
Camera.Restore_WithJumpCut
Player.CanMove($PLAYER_CHAR, true)
display_hud 1
display_radar 1
wait 100
terminate_this_custom_script

:BADLANDS2
load_special_character 'CESAR' as 1
Model.Load(#SAVANNA)
load_all_models_now
if
has_special_character_loaded 1
jf @Unknown
wait 100
Actor.Create(1@, PedType.CivMale, #SPECIAL01, -2045.8, -2524.0, 31.0)
custom_plate_for_next_car #SAVANNA "LVA4L"
Car.Create(13@, #SAVANNA, -2047.7, -2527.5, 30.6)
Car.Angle(13@) = 50.0
display_hud 0
display_radar 0
Camera.SetPosition(-2070.8, -2462.1, 30.6, 0.0, 0.0, 0.0)
Actor.PutAt($PLAYER_ACTOR, -2045.2, -2524.5, 31.0)
Camera.PointAt(-2050.9, -2530.4, 30.4, 2)
Actor.Angle($PLAYER_ACTOR) = 140.0
Actor.Angle(1@) = 140.0
Player.CanMove($PLAYER_CHAR, false)
wait 3000
change_car_colour 13@ colour1 3 colour2 3
Camera.Restore_WithJumpCut
Camera.SetPosition(-2050.9, -2530.4, 30.4, 0.0, 0.0, 0.0)
Camera.PointAt(-2045.2, -2524.5, 31.0, 2)
task_look_at_char $PLAYER_ACTOR look_at 1@ time 3000
task_say $PLAYER_ACTOR table 149
wait 3000
task_go_to_coord_any_means 1@ -2045.1 -2522.3 31.0 walk_style 4 time 1000
wait 1000
Camera.Restore_WithJumpCut
Player.CanMove($PLAYER_CHAR, true)
unload_special_character 1
Actor.DestroyInstantly(1@)
display_hud 1
display_radar 1
wait 100
Model.Destroy(#SAVANNA)
Car.RemoveReferences(13@)
terminate_this_custom_script

:CAT_HOUSE
if
locate_char_any_means_3d $PLAYER_ACTOR sphere 0 in_sphere 877.0 -30.1 63.1 radius 2.0 2.0 2.0
jf @RNDM_HOUSE1
display_hud 0
display_radar 0
if
$Catalina_Total_Passed_Missions >= 4
jf @CAT_HOUSE2
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "IDLE_STANCE" IFP "PED" framedelta 4.0 loopA 0 lockX 1 lockY 1 lockF 1 time 2000
Actor.PutAt($PLAYER_ACTOR, 870.1, -25.5, 63.9)
Camera.SetPosition(854.1, -30.0, 65.1, 0.0, 0.0, 0.0)
Camera.OnPed($PLAYER_ACTOR, 15, 2)
Actor.Angle($PLAYER_ACTOR) = 180.0
wait 2000
task_go_to_coord_any_means $PLAYER_ACTOR 868.4 -28.9 63.1 walk_style 4 time 5000
wait 5000
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
wait 100
terminate_this_custom_script

:CAT_HOUSE2
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "flee_lkaround_01" IFP "PED" framedelta 4.0 loopA 0 lockX 1 lockY 1 lockF 1 time 2000
Actor.PutAt($PLAYER_ACTOR, 870.1, -25.5, 63.9)
Camera.SetPosition(854.1, -30.0, 65.1, 0.0, 0.0, 0.0)
Camera.OnPed($PLAYER_ACTOR, 15, 2)
Actor.Angle($PLAYER_ACTOR) = 180.0
load_special_character 'CAT' as 1
wait 100
if
has_special_character_loaded 1
jf @Unknown
Actor.Create(1@, PedType.CivFemale, #SPECIAL01, 867.5, -24.8, 64.0)
if
does_char_exist 1@
then
Actor.Angle(1@) = 180.0
wait 2000
task_play_anim_secondary 1@ perform_animation "endchat_03" IFP "PED" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 2330
task_go_to_coord_any_means $PLAYER_ACTOR 869.2 -27.7 63.1 walk_style 6 time 5000
wait 5000
Camera.Restore_WithJumpCut
Actor.DestroyWithFade(1@)
display_hud 1
display_radar 1
wait 100
terminate_this_custom_script
end

:RNDM_HOUSE1
if
locate_char_any_means_3d $PLAYER_ACTOR sphere 0 in_sphere 2339.2 -1063.8 1049.0 radius 2.0 2.0 2.0
jf @TIERRARO
display_hud 0
display_radar 0
store_clothes_state
request_animation "INT_HOUSE"
if
has_animation_loaded "INT_HOUSE"
then
Camera.SetPosition(2344.7, -1062.4, 1050.4, 0.0, 0.0, 0.0)
Camera.OnPed($PLAYER_ACTOR, 15, 2)
Player.SetClothes($PLAYER_CHAR, "Legsheart", "Legs", BodyPart.Legs)
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 0
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 3
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 16
Player.Build($PLAYER_CHAR)
Actor.PutAt($PLAYER_ACTOR, 2340.9, -1068.0, 1049.0)
Actor.Angle($PLAYER_ACTOR) = 90.0
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "BED_OUT_R" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 3330
wait 3500
Camera.Restore_WithJumpCut
Camera.SetPosition(2331.1, -1064.1, 1049.0, 0.0, 0.0, 0.0)
Camera.OnPed($PLAYER_ACTOR, 15, 2)
task_go_to_coord_any_means $PLAYER_ACTOR 2340.2 -1063.9 1049.0 walk_style 4 time 1100
restore_clothes_state
Player.Build($PLAYER_CHAR)
wait 4000
task_go_to_coord_any_means $PLAYER_ACTOR 2338.2 -1063.9 1049.0 walk_style 4 time 1000
wait 1000
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
wait 100
remove_animation "INT_HOUSE"
terminate_this_custom_script
end

:TIERRARO
if
locate_char_any_means_3d $PLAYER_ACTOR sphere 0 in_sphere -700.3 966.0 12.3 radius 2.0 2.0 2.0
jf @RNDM_HOUSE2
0209: 10@ = random_int_in_ranges 0 3
if
10@ == 0
jf @TIERRARO2
display_hud 0
display_radar 0
Camera.SetPosition(-711.2, 959.5, 12.3, 0.0, 0.0, 0.0)
Camera.PointAt(-688.2, 947.1, 13.0, 2)
Actor.PutAt($PLAYER_ACTOR, -685.1, 942.3, 13.6)
Actor.Angle($PLAYER_ACTOR) = 180.0
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "SEAT_idle" IFP "PED" framedelta 4.0 loopA 1 lockX 0 lockY 0 lockF 0 time -1
wait 3500
Camera.Restore_WithJumpCut
Camera.SetPosition(-691.0, 937.0, 16.8, 0.0, 0.0, 0.0)
Camera.OnPed($PLAYER_ACTOR, 15, 2)
wait 2000
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "SEAT_UP" IFP "PED" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 700
wait 4000
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
wait 100
terminate_this_custom_script

:TIERRARO2
if
10@ == 1
jf @TIERRARO3 
display_hud 0
display_radar 0
Camera.SetPosition(-657.9, 892.9, 5.4, 0.0, 0.0, 0.0)
Camera.PointAt(-660.1, 879.5, 2.0, 2)
Actor.PutAt($PLAYER_ACTOR, -660.1, 880.0, 2.0)
Actor.Angle($PLAYER_ACTOR) = -20.0
request_animation "GANGS"
wait 0
if
has_animation_loaded "GANGS"
then
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "LEANIDLE" IFP "GANGS" framedelta 4.0 loopA 1 lockX 0 lockY 0 lockF 1 time -1
wait 3000
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "LEANOUT" IFP "GANGS" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 1000
wait 1100
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
wait 100
remove_animation "GANGS"
terminate_this_custom_script
end

:TIERRARO3
display_hud 0
display_radar 0
Camera.SetPosition(-687.0, 909.1, 12.1, 0.0, 0.0, 0.0)
Camera.PointAt(-689.2, 926.8, 13.6, 2)
Actor.PutAt($PLAYER_ACTOR, -689.2, 926.8, 13.6)
Actor.Angle($PLAYER_ACTOR) = 180.0
request_animation "CASINO"
wait 0
if
has_animation_loaded "CASINO"
then
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "Roulette_loop" IFP "CASINO" framedelta 4.0 loopA 1 lockX 0 lockY 0 lockF 0 time -1
wait 3000
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "Roulette_out" IFP "CASINO" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 500
wait 1430
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
wait 100
remove_animation "CASINO"
terminate_this_custom_script
end

:RNDM_HOUSE2
if
locate_char_any_means_3d $PLAYER_ACTOR sphere 0 in_sphere 2367.0 -1123.7 1050.8 radius 2.0 2.0 2.0
jf @RNDM_HOUSE3
display_hud 0
display_radar 0
store_clothes_state
request_animation "INT_HOUSE"
if
has_animation_loaded "INT_HOUSE"
then
Camera.SetPosition(2362.9, -1135.5, 1050.8, 0.0, 0.0, 0.0)
Camera.PointAt(2358.8, -1131.5, 1050.8, 2)
Player.SetClothes($PLAYER_CHAR, "Legsheart", "Legs", BodyPart.Legs)
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 0
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 3
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 16
Player.Build($PLAYER_CHAR)
Actor.PutAt($PLAYER_ACTOR, 2358.8, -1131.5, 1050.8)
Actor.Angle($PLAYER_ACTOR) = 0.0
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "BED_OUT_R" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 3330
wait 3500
Camera.Restore_WithJumpCut
Camera.SetPosition(2365.2, -1125.8, 1050.8, 0.0, 0.0, 0.0)
Camera.PointAt(2365.1, -1132.7, 1050.8, 2)
restore_clothes_state
Player.Build($PLAYER_CHAR)
task_go_to_coord_any_means $PLAYER_ACTOR 2365.2 -1132.1 1050.8 walk_style 4 time 1000
wait 4000
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
wait 100
remove_animation "INT_HOUSE"
terminate_this_custom_script
end

:RNDM_HOUSE3
//SF_UNIQUE_HOUSE
if
locate_char_any_means_3d $PLAYER_ACTOR sphere 0 in_sphere 2252.6 -1209.3 1049.0 radius 2.0 2.0 2.0
jf @RNDM_HOUSE4
if
not 14@ == 1
jf @RNDM_HOUSE3_GFOVER
0209: 10@ = random_int_in_ranges 0 2
if
10@ == 0
jf @RNDM_HOUSE3_ALONE 
display_hud 0
display_radar 0
store_clothes_state
request_animation "INT_HOUSE"
if
has_animation_loaded "INT_HOUSE"
then
Camera.SetPosition(2262.6, -1219.8, 1049.0, 0.0, 0.0, 0.0)
Camera.PointAt(2259.3, -1223.6, 1049.0, 2)
Player.SetClothes($PLAYER_CHAR, "Legsheart", "Legs", BodyPart.Legs)
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 0
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 3
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 16
Player.Build($PLAYER_CHAR)
Actor.PutAt($PLAYER_ACTOR, 2259.3, -1223.6, 1049.0)
Actor.Angle($PLAYER_ACTOR) = 270.0
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "BED_OUT_L" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 3330
wait 3500
Camera.Restore_WithJumpCut
Actor.PutAt($PLAYER_ACTOR, 2259.2, -1216.0, 1049.0)
Camera.SetPosition(2252.1, -1210.0, 1049.0, 0.0, 0.0, 0.0)
Camera.PointAt(2263.0, -1210.0, 1049.0, 2)
restore_clothes_state
Player.Build($PLAYER_CHAR)
task_go_to_coord_any_means $PLAYER_ACTOR 2258.6 -1211.5 1049.0 walk_style 4 time 1000
wait 4000
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
wait 100
remove_animation "INT_HOUSE"
terminate_this_custom_script
end

:RNDM_HOUSE3_GFOVER
if
$Girl_Progress[4] >= 80
jf @RNDM_HOUSE3_HOEOVER 
display_hud 0
display_radar 0
store_clothes_state
request_animation "INT_HOUSE"
if
has_animation_loaded "INT_HOUSE"
then
Camera.SetPosition(2262.6, -1219.8, 1049.0, 0.0, 0.0, 0.0)
Camera.PointAt(2259.3, -1223.6, 1049.0, 2)
Player.SetClothes($PLAYER_CHAR, "Legsheart", "Legs", BodyPart.Legs)
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 0
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 3
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 16
Player.Build($PLAYER_CHAR)
Actor.PutAt($PLAYER_ACTOR, 2259.3, -1223.6, 1049.0)
Actor.Angle($PLAYER_ACTOR) = 270.0
load_special_character 'NURGRL2' as 1
wait 0
if
has_special_character_loaded 1
jf @Unknown
Actor.Create(1@, PedType.CivFemale, #SPECIAL01, 2257.9, -1223.6, 1048.0)
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "BED_OUT_L" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 3330
if
does_char_exist 1@
then
set_char_collision 1@ collision 0
task_play_anim_non_interruptable 1@ perform_animation "BED_LOOP_R" IFP "INT_HOUSE" framedelta 4.0 loopA 1 lockX 0 lockY 0 lockF 0 time -1
Actor.Angle(1@) = 90.0
wait 3500
Camera.Restore_WithJumpCut
Actor.PutAt($PLAYER_ACTOR, 2259.2, -1216.0, 1049.0)
Camera.SetPosition(2252.1, -1210.0, 1049.0, 0.0, 0.0, 0.0)
Camera.PointAt(2263.0, -1210.0, 1049.0, 2)
restore_clothes_state
Player.Build($PLAYER_CHAR)
task_say 1@ from_table 299
task_go_to_coord_any_means $PLAYER_ACTOR 2258.6 -1211.5 1049.0 walk_style 4 time 1000
wait 1000
task_say $PLAYER_ACTOR from_table 143
wait 3000
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
set_char_keep_task 1@ keep 1
Actor.RemoveReferences(1@)
wait 100
remove_animation "INT_HOUSE"
terminate_this_custom_script
end
end

:RNDM_HOUSE3_HOEOVER
0209: 15@ = random_int_in_ranges 0 2
if
15@ == 0
then
15@ = 237
else
15@ = 238
end 
display_hud 0
display_radar 0
store_clothes_state
request_animation "INT_HOUSE"
if
has_animation_loaded "INT_HOUSE"
then
Camera.SetPosition(2262.6, -1219.8, 1049.0, 0.0, 0.0, 0.0)
Camera.PointAt(2259.3, -1223.6, 1049.0, 2)
Player.SetClothes($PLAYER_CHAR, "Legsheart", "Legs", BodyPart.Legs)
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 0
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 3
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 16
Player.Build($PLAYER_CHAR)
Actor.PutAt($PLAYER_ACTOR, 2259.3, -1223.6, 1049.0)
Actor.Angle($PLAYER_ACTOR) = 270.0
Model.Load(15@)
load_all_models_now
wait 0
if
Model.Available(15@)
jf @Unknown
Actor.Create(1@, PedType.CivFemale, 15@, 2257.9, -1223.6, 1048.0)
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "BED_OUT_L" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 3330
if
does_char_exist 1@
then
set_char_collision 1@ collision 0
task_play_anim_non_interruptable 1@ perform_animation "BED_LOOP_R" IFP "INT_HOUSE" framedelta 4.0 loopA 1 lockX 0 lockY 0 lockF 0 time -1
Actor.Angle(1@) = 90.0
wait 3500
Camera.Restore_WithJumpCut
Actor.PutAt($PLAYER_ACTOR, 2259.2, -1216.0, 1049.0)
Camera.SetPosition(2252.1, -1210.0, 1049.0, 0.0, 0.0, 0.0)
Camera.PointAt(2263.0, -1210.0, 1049.0, 2)
restore_clothes_state
Player.Build($PLAYER_CHAR)
task_say 1@ from_table 197
task_go_to_coord_any_means $PLAYER_ACTOR 2258.6 -1211.5 1049.0 walk_style 4 time 1000
wait 4000
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
set_char_keep_task 1@ keep 1
Actor.RemoveReferences(1@)
wait 100
remove_animation "INT_HOUSE"
terminate_this_custom_script
end
end

:RNDM_HOUSE3_ALONE
display_hud 0
display_radar 0
store_clothes_state
request_animation "INT_HOUSE"
if
has_animation_loaded "INT_HOUSE"
then
Camera.SetPosition(2256.3, -1213.1, 1049.0, 0.0, 0.0, 0.0)
Camera.PointAt(2258.6, -1208.4, 1049.0, 2)
Actor.PutAt($PLAYER_ACTOR, 2258.6, -1208.4, 1049.0)
Actor.Angle($PLAYER_ACTOR) = 180.0
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "LOU_Loop" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 1 time -1
wait 3330
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "LOU_OUT" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 1330
wait 1000
display_hud 1
display_radar 1
Camera.Restore_WithJumpCut
wait 100
remove_animation "INT_HOUSE"
terminate_this_custom_script
end

:RNDM_HOUSE4
if
locate_char_any_means_3d $PLAYER_ACTOR sphere 0 in_sphere 2310.8 -1210.9 1049.0 radius 2.0 2.0 2.0
jf @RNDM_HOUSE5
display_hud 0
display_radar 0
store_clothes_state
request_animation "INT_HOUSE"
if
has_animation_loaded "INT_HOUSE"
then
Camera.SetPosition(2314.2, -1211.9, 1051.0, 0.0, 0.0, 0.0)
Camera.PointAt(2306.5, -1209.3, 1049.0, 2)
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 0
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 3
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 16
Player.Build($PLAYER_CHAR)
Actor.PutAt($PLAYER_ACTOR, 2306.7, -1209.3, 1049.0)
Actor.Angle($PLAYER_ACTOR) = 270.0
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "BED_OUT_R" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 3330
wait 3500
Camera.Restore_WithJumpCut
restore_clothes_state
Player.Build($PLAYER_CHAR)
display_hud 1
display_radar 1
wait 100
remove_animation "INT_HOUSE"
terminate_this_custom_script
end

:RNDM_HOUSE5
if
locate_char_any_means_3d $PLAYER_ACTOR sphere 0 in_sphere 2233.2 -1107.8 1050.8 radius 2.0 2.0 2.0
jf @RNDM_HOUSE6
display_hud 0
display_radar 0
store_clothes_state
request_animation "INT_HOUSE"
if
has_animation_loaded "INT_HOUSE"
then
Camera.SetPosition(2229.9, -1103.9, 1050.8, 0.0, 0.0, 0.0)
Camera.PointAt(2230.4, -1107.5, 1050.8, 2)
Player.SetClothes($PLAYER_CHAR, "Legsheart", "Legs", BodyPart.Legs)
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 0
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 3
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 16
Player.Build($PLAYER_CHAR)
Actor.PutAt($PLAYER_ACTOR, 2230.4, -1107.5, 1050.8)
Actor.Angle($PLAYER_ACTOR) = 180.0
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "BED_OUT_L" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 3330
wait 3500
Camera.Restore_WithJumpCut
task_go_to_coord_any_means $PLAYER_ACTOR 2233.2 -1107.8 1050.8 walk_style 4 time 1000
Camera.SetPosition(2231.7, -1115.2, 1050.8, 0.0, 0.0, 0.0)
Camera.PointAt(2233.2, -1107.8, 1050.8, 2)
restore_clothes_state
Player.Build($PLAYER_CHAR)
wait 2000
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
wait 100
remove_animation "INT_HOUSE"
terminate_this_custom_script
end

:RNDM_HOUSE6
//SF_CALTON_Doherty_House
if
locate_char_any_means_3d $PLAYER_ACTOR sphere 0 in_sphere 2189.8 -1203.8 1049.0 radius 2.0 2.0 2.0
jf @RNDM_HOUSE7
if and
not 14@ == 7
not 14@ == 1
jf @RNDM_HOUSE6_HOMIESOVER
0209: 10@ = random_int_in_ranges 0 2
if
10@ == 0
jf @RNDM_HOUSE6_ALONE
display_hud 0
display_radar 0
store_clothes_state
request_animation "INT_HOUSE"
if
has_animation_loaded "INT_HOUSE"
then
Camera.SetPosition(2190.5, -1214.1, 1049.0, 0.0, 0.0, 0.0)
Camera.PointAt(2186.8, -1210.1, 1049.0, 2)
Player.SetClothes($PLAYER_CHAR, "Legsheart", "Legs", BodyPart.Legs)
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 0
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 3
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 16
Player.Build($PLAYER_CHAR)
Actor.PutAt($PLAYER_ACTOR, 2186.8, -1210.1, 1049.0)
Actor.Angle($PLAYER_ACTOR) = 60.0
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "BED_OUT_L" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 3330
wait 3500
Camera.Restore_WithJumpCut
task_go_to_coord_any_means $PLAYER_ACTOR 2193.3 -1212.6 1049.0 walk_style 4 time 1000
Camera.SetPosition(2195.3, -1212.6, 1049.0, 0.0, 0.0, 0.0)
Camera.PointAt(2193.3, -1212.6, 1049.0, 2)
restore_clothes_state
Player.Build($PLAYER_CHAR)
wait 7000
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
wait 100
remove_animation "INT_HOUSE"
terminate_this_custom_script
end

:RNDM_HOUSE6_HOMIESOVER
if
not 14@ == 1 
jf @RNDM_HOUSE6_GFOVER
if
not $Wuzimu_Total_Passed_Missions == 0
jf @RNDM_HOUSE6_ALONE
load_special_character 'WUZIMU' as 1
display_hud 0
display_radar 0
Camera.SetPosition(2194.5, -1199.2, 1049.0, 0.0, 0.0, 0.0)
Camera.PointAt(2191.5, -1206.0, 1049.0, 2)
Actor.PutAt($PLAYER_ACTOR, 2191.5, -1206.0, 1049.0)
Actor.Angle($PLAYER_ACTOR) = -30.0
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "LOU_Loop" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 1 time -1
wait 0
if
has_special_character_loaded 1 
jf @Unknown
Actor.Create(1@, PedType.CivMale, #SPECIAL01, 2195.3, -1205.2, 1049.0)
if
does_char_exist 1@
then
Actor.Angle(1@) = 45.0
task_play_anim_secondary 1@ perform_animation "SEAT_Idle" IFP "PED" framedelta 4.0 loopA 1 lockX 0 lockY 0 lockF 1 time -1
wait 3330
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "LOU_OUT" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 1330
task_look_at_char 1@ look_at_char $PLAYER_ACTOR time 1000
wait 1000
display_hud 1
display_radar 1
Camera.Restore_WithJumpCut
set_char_keep_task 1@ keep_task 1
wait 100
Actor.RemoveReferences(1@)
Model.Destroy(#SPECIAL01)
remove_animation "INT_HOUSE"
terminate_this_custom_script
end

:RNDM_HOUSE6_ALONE
0209: 15@ = random_int_in_ranges 0 2
if
15@ == 0
jf @RNDM_HOUSE6_ALONE2
Camera.SetPosition(2194.5, -1199.2, 1049.0, 0.0, 0.0, 0.0)
Camera.PointAt(2191.5, -1206.0, 1049.0, 2)
Actor.PutAt($PLAYER_ACTOR, 2191.5, -1206.0, 1049.0)
Actor.Angle($PLAYER_ACTOR) = -30.0
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "LOU_Loop" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 1 time -1
wait 3330
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "LOU_OUT" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 1330
wait 1000
display_hud 1
display_radar 1
Camera.Restore_WithJumpCut
wait 100
remove_animation "INT_HOUSE"
terminate_this_custom_script

:RNDM_HOUSE6_ALONE2 
Camera.SetPosition(2191.7, -1226.6, 1049.7, 0.0, 0.0, 0.0)
Camera.PointAt(2193.9, -1223.0, 1049.0, 2)
Actor.PutAt($PLAYER_ACTOR, 2193.9, -1223.0, 1049.0)
Actor.Angle($PLAYER_ACTOR) = -90.0
request_animation "PAULNMAC"
wait 0
if
has_animation_loaded "PAULNMAC"
then
open_sequence_task 8@
task_play_anim -1 perform_animation "PISS_IN" IFP "PAULNMAC" framedelta 4.0 loop 0 lockX 0 lockY 0 lockF 0 time -1
task_play_anim -1 perform_animation "PISS_LOOP" IFP "PAULNMAC" framedelta 4.0 loop 0 lockX 0 lockY 0 lockF 0 time -1
task_play_anim -1 perform_animation "PISS_OUT" IFP "PAULNMAC" framedelta 4.0 loop 0 lockX 0 lockY 0 lockF 0 time -1
task_say -1 from_table 336
close_sequence_task 8@
perform_sequence_task $PLAYER_ACTOR to_AS_pack 8@
wait 7000
clear_sequence_task 8@
wait 500
Camera.Restore_WithJumpCut
Camera.SetPosition(2193.1, -1213.0, 1049.0, 0.0, 0.0, 0.0)
Camera.PointAt(2193.1, -1219.7, 1049.0, 2)
task_go_to_coord_any_means $PLAYER_ACTOR 2193.1 -1219.7 1049.0 walk_style 4 time 1000
wait 2000
display_hud 1
display_radar 1
Camera.Restore_WithJumpCut
remove_animation "PAULNMAC"
wait 100
terminate_this_custom_script
end

:RNDM_HOUSE6_GFOVER
if
$Girl_Progress[1] >= 80
jf @RNDM_HOUSE6_HOEOVER
display_hud 0
display_radar 0
store_clothes_state
request_animation "INT_HOUSE"
if
has_animation_loaded "INT_HOUSE"
then
Camera.SetPosition(2190.5, -1214.1, 1049.0, 0.0, 0.0, 0.0)
Camera.PointAt(2186.8, -1210.1, 1049.0, 2)
Player.SetClothes($PLAYER_CHAR, "Legsheart", "Legs", BodyPart.Legs)
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 0
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 3
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 16
Player.Build($PLAYER_CHAR)
Actor.PutAt($PLAYER_ACTOR, 2186.8, -1210.1, 1049.0)
Actor.Angle($PLAYER_ACTOR) = 60.0
load_special_character 'MECGRL2' as 1
wait 0
if
has_special_character_loaded 1
jf @Unknown
Actor.Create(1@, PedType.CivFemale, #SPECIAL01, 2188.5, -1209.9, 1047.5)
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "BED_OUT_L" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 3330
if
does_char_exist 1@
then
task_play_anim_non_interruptable 1@ perform_animation "BED_LOOP_R" IFP "INT_HOUSE" framedelta 4.0 loopA 1 lockX 0 lockY 0 lockF 0 time -1
Actor.Angle(1@) = 270.0
wait 3500
Camera.Restore_WithJumpCut
task_go_to_coord_any_means $PLAYER_ACTOR 2193.3 -1212.6 1049.0 walk_style 4 time 1000
Camera.SetPosition(2195.3, -1212.6, 1049.0, 0.0, 0.0, 0.0)
Camera.PointAt(2193.3, -1212.6, 1049.0, 2)
restore_clothes_state
Player.Build($PLAYER_CHAR)
wait 3500
task_say $PLAYER_ACTOR from_table 143
Actor.DestroyInstantly(1@)
unload_special_character 1
Model.Load(#MECGRL3)
load_all_models_now
if
Model.Available(#MECGRL3)
jf @Unknown
Actor.Create(1@, PedType.CivFemale, #MECGRL3, 2189.3, -1209.9, 1049.0)
wait 1000
task_say 1@ from_table 299
wait 3000
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
Actor.RemoveReferences(1@)
wait 100
remove_animation "INT_HOUSE"
terminate_this_custom_script
end
end

:RNDM_HOUSE6_HOEOVER
0209: 15@ = random_int_in_ranges 0 2
if
15@ == 0
then
15@ = 237
else
15@ = 238
end
display_hud 0
display_radar 0
store_clothes_state
request_animation "INT_HOUSE"
if
has_animation_loaded "INT_HOUSE"
then
Camera.SetPosition(2190.5, -1214.1, 1049.0, 0.0, 0.0, 0.0)
Camera.PointAt(2186.8, -1210.1, 1049.0, 2)
Player.SetClothes($PLAYER_CHAR, "Legsheart", "Legs", BodyPart.Legs)
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 0
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 3
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 16
Player.Build($PLAYER_CHAR)
Actor.PutAt($PLAYER_ACTOR, 2186.8, -1210.1, 1049.0)
Actor.Angle($PLAYER_ACTOR) = 60.0
Model.Load(15@)
load_all_models_now
if
Model.Available(15@)
jf @Unknown
Actor.Create(1@, PedType.CivFemale, 15@, 2188.5, -1209.9, 1048.0)
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "BED_OUT_L" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 3330
if
does_char_exist 1@
then
set_char_collision 1@ collision 0
task_play_anim_non_interruptable 1@ perform_animation "BED_LOOP_R" IFP "INT_HOUSE" framedelta 4.0 loopA 1 lockX 0 lockY 0 lockF 0 time -1
Actor.Angle(1@) = 270.0
wait 3500
Camera.Restore_WithJumpCut
task_go_to_coord_any_means $PLAYER_ACTOR 2193.3 -1212.6 1049.0 walk_style 4 time 1000
Camera.SetPosition(2195.3, -1212.6, 1049.0, 0.0, 0.0, 0.0)
Camera.PointAt(2193.3, -1212.6, 1049.0, 2)
restore_clothes_state
Player.Build($PLAYER_CHAR)
task_say 1@ from_table 197
wait 3500
task_say $PLAYER_ACTOR from_table 141
wait 3000
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
set_char_keep_task 1@ keep 1
Actor.RemoveReferences(1@)
wait 100
remove_animation "INT_HOUSE"
terminate_this_custom_script
end
end

:RNDM_HOUSE7
if
locate_char_any_means_3d $PLAYER_ACTOR sphere 0 in_sphere 2207.8 -1075.3 1050.4 radius 2.0 2.0 2.0
jf @RNDM_HOUSE8
display_hud 0
display_radar 0
store_clothes_state
request_animation "INT_HOUSE"
if
has_animation_loaded "INT_HOUSE"
then
Camera.SetPosition(2202.7, -1078.1, 1050.4, 0.0, 0.0, 0.0)
Camera.PointAt(2207.7, -1071.7, 1050.4, 2)
Player.SetClothes($PLAYER_CHAR, "Legsheart", "Legs", BodyPart.Legs)
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 0
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 3
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 16
Player.Build($PLAYER_CHAR)
Actor.PutAt($PLAYER_ACTOR, 2207.7, -1071.7, 1050.4)
Actor.Angle($PLAYER_ACTOR) = 90.0
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "BED_OUT_R" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 3330
wait 3500
Camera.Restore_WithJumpCut
task_go_to_coord_any_means $PLAYER_ACTOR 2207.8 -1075.3 1050.4 walk_style 4 time 1000
Camera.SetPosition(2218.3, -1076.1, 1050.4, 0.0, 0.0, 0.0)
Camera.PointAt(2207.8, -1075.3, 1050.4, 2)
restore_clothes_state
Player.Build($PLAYER_CHAR)
wait 3000
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
wait 100
remove_animation "INT_HOUSE"
terminate_this_custom_script
end

:RNDM_HOUSE8
if
locate_char_any_means_3d $PLAYER_ACTOR sphere 0 in_sphere 2281.5 -1139.3 1050.8 radius 2.0 2.0 2.0
jf @RNDM_HOUSE9
display_hud 0
display_radar 0
store_clothes_state
request_animation "INT_HOUSE"
if
has_animation_loaded "INT_HOUSE"
then
Camera.SetPosition(2284.9, -1139.9, 1051.3, 0.0, 0.0, 0.0)
Camera.PointAt(2284.8, -1136.6, 1050.8, 2)
Player.SetClothes($PLAYER_CHAR, "Legsheart", "Legs", BodyPart.Legs)
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 0
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 3
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 16
Player.Build($PLAYER_CHAR)
Actor.PutAt($PLAYER_ACTOR, 2284.8, -1136.6, 1050.8)
Actor.Angle($PLAYER_ACTOR) = 160.0
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "BED_OUT_R" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 3330
wait 3500
Camera.Restore_WithJumpCut
task_go_to_coord_any_means $PLAYER_ACTOR 2281.5 -1139.3 1050.8 walk_style 4 time 1000
Camera.SetPosition(2277.4, -1139.3, 1050.8, 0.0, 0.0, 0.0)
Camera.PointAt(2281.5, -1139.3, 1050.8, 2)
restore_clothes_state
Player.Build($PLAYER_CHAR)
wait 3000
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
wait 100
remove_animation "INT_HOUSE"
terminate_this_custom_script
end

:RNDM_HOUSE9
//LV_SUITES2
if
locate_char_any_means_3d $PLAYER_ACTOR sphere 0 in_sphere 2241.0 -1077.7 1049.0 radius 2.0 2.0 2.0
jf @MADD_MNSN
display_hud 0
display_radar 0
store_clothes_state
request_animation "INT_HOUSE"
if
has_animation_loaded "INT_HOUSE"
then
Camera.SetPosition(2242.7, -1074.0, 1049.0, 0.0, 0.0, 0.0)
Camera.PointAt(2242.7, -1080.4, 1049.0, 2)
Player.SetClothes($PLAYER_CHAR, "Legsheart", "Legs", BodyPart.Legs)
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 0
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 3
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 16
Player.Build($PLAYER_CHAR)
Actor.PutAt($PLAYER_ACTOR, 2242.7, -1080.4, 1049.0)
Actor.Angle($PLAYER_ACTOR) = 90.0
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "BED_OUT_R" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 3330
wait 3500
Camera.Restore_WithJumpCut
task_go_to_coord_any_means $PLAYER_ACTOR 2241.0 -1077.7 1049.0 walk_style 4 time 1000
Camera.SetPosition(2237.7, -1071.4, 1049.0, 0.0, 0.0, 0.0)
Camera.PointAt(2237.9, -1077.4, 1049.0, 2)
restore_clothes_state
Player.Build($PLAYER_CHAR)
wait 3000
task_go_to_coord_any_means $PLAYER_ACTOR 2237.9 -1077.4 1049.0 walk_style 4 time 1000
wait 3000
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
wait 100
remove_animation "INT_HOUSE"
terminate_this_custom_script
end

:MADD_MNSN
if
locate_char_any_means_3d $PLAYER_ACTOR sphere 0 in_sphere 1286.8 -797.6 1089.9 radius 2.0 2.0 2.0
jf @LV_BIGHOUSE
display_hud 0
display_radar 0
store_clothes_state
request_animation "INT_HOUSE"
if
has_animation_loaded "INT_HOUSE"
then
Camera.SetPosition(1278.6, -810.0, 1089.9, 0.0, 0.0, 0.0)
Camera.PointAt(1272.2, -801.6, 1089.9, 2)
Player.SetClothes($PLAYER_CHAR, "Legsheart", "Legs", BodyPart.Legs)
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 0
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 3
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 16
Player.Build($PLAYER_CHAR)
Actor.PutAt($PLAYER_ACTOR, 1272.2, -801.6, 1089.9)
Actor.Angle($PLAYER_ACTOR) = 0.0
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "BED_OUT_R" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 3330
wait 3500
Camera.Restore_WithJumpCut
task_go_to_coord_any_means $PLAYER_ACTOR 1280.6 -801.7 1089.9 walk_style 4 time 1000
Camera.SetPosition(1284.4, -801.6, 1089.9, 0.0, 0.0, 0.0)
Camera.PointAt(1280.6, -801.7, 1089.9, 2)
restore_clothes_state
Player.Build($PLAYER_CHAR)
wait 3000
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
wait 100
remove_animation "INT_HOUSE"
terminate_this_custom_script
end

:LV_BIGHOUSE
if
locate_char_any_means_3d $PLAYER_ACTOR sphere 0 in_sphere 2320.1 -1013.3 1050.2 radius 2.0 2.0 2.0
jf @Unknown
if
not 14@ == 1 
jf @LV_BIGHOUSE_GFOVER
0209: 10@ = random_int_in_ranges 0 2
if
10@ == 0
jf @LV_BIGHOUSE_ALONE
display_hud 0
display_radar 0
store_clothes_state
request_animation "INT_HOUSE"
if
has_animation_loaded "INT_HOUSE"
then
Camera.SetPosition(2329.3, -1015.9, 1055.3, 0.0, 0.0, 0.0)
Camera.PointAt(2327.6, -1008.2, 1054.7, 2)
Player.SetClothes($PLAYER_CHAR, "Legsheart", "Legs", BodyPart.Legs)
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 0
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 3
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 16
Player.Build($PLAYER_CHAR)
Actor.PutAt($PLAYER_ACTOR, 2327.6, -1008.2, 1054.7)
Actor.Angle($PLAYER_ACTOR) = 270.0
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "BED_OUT_R" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 3330
wait 3500
Camera.Restore_WithJumpCut
task_go_to_coord_any_means $PLAYER_ACTOR 2327.7 -1012.3 1054.7 walk_style 4 time 1000
Camera.SetPosition(2316.1, -1012.6, 1054.7, 0.0, 0.0, 0.0)
Camera.PointAt(2318.1, -1012.6, 1054.7, 2)
restore_clothes_state
Player.Build($PLAYER_CHAR)
wait 3000
task_go_to_coord_any_means $PLAYER_ACTOR 2318.1 -1012.6 1054.7 walk_style 4 time 1000
wait 7000
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
wait 100
remove_animation "INT_HOUSE"
terminate_this_custom_script
end

:LV_BIGHOUSE_GFOVER
if
$Girl_Progress[5] >= 80
jf @LV_BIGHOUSE_HOEOVER
display_hud 0
display_radar 0
store_clothes_state
request_animation "INT_HOUSE"
if
has_animation_loaded "INT_HOUSE"
then
Camera.SetPosition(2329.3, -1015.9, 1055.3, 0.0, 0.0, 0.0)
Camera.PointAt(2327.6, -1008.2, 1054.7, 2)
Player.SetClothes($PLAYER_CHAR, "Legsheart", "Legs", BodyPart.Legs)
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 0
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 3
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 16
Player.Build($PLAYER_CHAR)
Actor.PutAt($PLAYER_ACTOR, 2327.6, -1008.2, 1054.7)
Actor.Angle($PLAYER_ACTOR) = 270.0
load_special_character 'CROGRL2' as 1
wait 1
if
has_special_character_loaded 1
jf @Unknown
Actor.Create(1@, PedType.CivFemale, #SPECIAL01, 2326.3, -1008.3, 1053.7)
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "BED_OUT_R" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 3330
if
does_char_exist 1@
then
set_char_collision 1@ collision 0
task_play_anim_non_interruptable 1@ perform_animation "BED_LOOP_L" IFP "INT_HOUSE" framedelta 4.0 loopA 1 lockX 0 lockY 0 lockF 0 time -1
Actor.Angle(1@) = 90.0
wait 3500
task_say $PLAYER_ACTOR from_table 116
Actor.DestroyInstantly(1@)
unload_special_character 1
Camera.Restore_WithJumpCut
Model.Load(#CROGRL3)
load_all_models_now
if
Model.Available(#CROGRL3)
jf @Unknown
Actor.Create(1@, PedType.CivFemale, #CROGRL3, 2325.3, -1008.3, 1054.7)
task_go_to_coord_any_means $PLAYER_ACTOR 2327.7 -1012.3 1054.7 walk_style 4 time 1000
Camera.SetPosition(2316.1, -1012.6, 1054.7, 0.0, 0.0, 0.0)
Camera.PointAt(2318.1, -1012.6, 1054.7, 2)
restore_clothes_state
Player.Build($PLAYER_CHAR)
task_say $PLAYER_ACTOR from_table 143
wait 3000
task_go_to_coord_any_means $PLAYER_ACTOR 2318.1 -1012.6 1054.7 walk_style 4 time 1000
task_say 1@ from_table 299
wait 7000
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
wait 100
remove_animation "INT_HOUSE"
Actor.RemoveReferences(1@)
terminate_this_custom_script
end
end

:LV_BIGHOUSE_HOEOVER
0209: 15@ = random_int_in_ranges 0 2
if
15@ == 0
then
15@ = 85
else
15@ = 87
end
display_hud 0
display_radar 0
store_clothes_state
request_animation "INT_HOUSE"
if
has_animation_loaded "INT_HOUSE"
then
Camera.SetPosition(2329.3, -1015.9, 1055.3, 0.0, 0.0, 0.0)
Camera.PointAt(2327.6, -1008.2, 1054.7, 2)
Player.SetClothes($PLAYER_CHAR, "Legsheart", "Legs", BodyPart.Legs)
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 0
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 3
give_player_clothes $PLAYER_CHAR textureCRC 0 modelCRC 0 bodypart 16
Player.Build($PLAYER_CHAR)
Actor.PutAt($PLAYER_ACTOR, 2327.6, -1008.2, 1054.7)
Actor.Angle($PLAYER_ACTOR) = 270.0
Model.Load(15@)
load_all_models_now
if
Model.Available(15@)
jf @Unknown
Actor.Create(1@, PedType.CivFemale, 15@, 2326.3, -1008.3, 1053.7)
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "BED_OUT_R" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 3330
if
does_char_exist 1@
then
set_char_collision 1@ collision 0
task_play_anim_non_interruptable 1@ perform_animation "BED_LOOP_L" IFP "INT_HOUSE" framedelta 4.0 loopA 1 lockX 0 lockY 0 lockF 0 time -1
Actor.Angle(1@) = 90.0
wait 3500
Camera.Restore_WithJumpCut
task_go_to_coord_any_means $PLAYER_ACTOR 2327.7 -1012.3 1054.7 walk_style 4 time 1000
Camera.SetPosition(2316.1, -1012.6, 1054.7, 0.0, 0.0, 0.0)
Camera.PointAt(2318.1, -1012.6, 1054.7, 2)
restore_clothes_state
Player.Build($PLAYER_CHAR)
task_say $PLAYER_ACTOR from_table 141
wait 3000
task_go_to_coord_any_means $PLAYER_ACTOR 2318.1 -1012.6 1054.7 walk_style 4 time 1000
task_say 1@ from_table 197
wait 7000
Camera.Restore_WithJumpCut
display_hud 1
display_radar 1
set_char_keep_task 1@ keep_task 1
wait 100
remove_animation "INT_HOUSE"
Actor.RemoveReferences(1@)
terminate_this_custom_script
end
end

:LV_BIGHOUSE_ALONE
display_hud 0
display_radar 0
store_clothes_state
request_animation "INT_HOUSE"
if
has_animation_loaded "INT_HOUSE"
then
Camera.SetPosition(2327.8, -1026.7, 1050.2, 0.0, 0.0, 0.0)
Camera.PointAt(2323.5, -1019.1, 1050.2, 2)
Actor.PutAt($PLAYER_ACTOR, 2324.9, -1024.1, 1050.2)
Actor.Angle($PLAYER_ACTOR) = 0.0
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "SEAT_IDLE" IFP "PED" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 1 time -1
wait 3330
task_play_anim_non_interruptable $PLAYER_ACTOR perform_animation "LOU_OUT" IFP "INT_HOUSE" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 1330
wait 1000
display_hud 1
display_radar 1
Camera.Restore_WithJumpCut
wait 100
remove_animation "INT_HOUSE"
terminate_this_custom_script
end

:Unknown
terminate_this_custom_script